const router = require("koa-router")();

router.get("/", async (ctx) => {
  let list = {
    name: "Jimmy",
    age: 22,
    habot: ["唱", "跳", "rap", "篮球"],
  };
  await ctx.render("index", {
    //配置模板引擎需要渲染的数据，也可以不传递
    list: list,
  });
});

module.exports = router;
